From 914654901ca0b88d3f68bfa0d24e7802e4c49788 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Sat, 28 May 2011 04:36:48 +0200 Subject: [PATCH] styleproperties: use property, not pspec as key This allows calling functions on the style property from more places. --- gtk/gtkstyleproperties.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gtk/gtkstyleproperties.c b/gtk/gtkstyleproperties.c index 7e1cb29241..2f153044f4 100644 --- a/gtk/gtkstyleproperties.c +++ b/gtk/gtkstyleproperties.c @@ -541,12 +541,12 @@ _gtk_style_properties_set_property_by_property (GtkStyleProperties *props, } priv = props->priv; - prop = g_hash_table_lookup (priv->properties, style_prop->pspec); + prop = g_hash_table_lookup (priv->properties, style_prop); if (!prop) { prop = property_data_new (); - g_hash_table_insert (priv->properties, style_prop->pspec, prop); + g_hash_table_insert (priv->properties, (gpointer) style_prop, prop); } val = property_data_get_value (prop, state); @@ -842,7 +842,7 @@ _gtk_style_properties_peek_property (GtkStyleProperties *props, } priv = props->priv; - prop = g_hash_table_lookup (priv->properties, node->pspec); + prop = g_hash_table_lookup (priv->properties, node); if (!prop) return NULL; @@ -1022,7 +1022,7 @@ gtk_style_properties_unset_property (GtkStyleProperties *props, } priv = props->priv; - prop = g_hash_table_lookup (priv->properties, node->pspec); + prop = g_hash_table_lookup (priv->properties, node); if (!prop) return; -- 2.30.2